package validate

import (
	"gin/common"
	"gin/model"
)

type AddLightWrapper struct {
	Data model.Light `json:"data" binding:"required"`
}

type UpdateLightWrapper struct {
	Data UpdateLight `json:"data" binding:"required"`
}

type SelectLightQuery struct {
	Param common.QueryParam `json:"param" binding:"required"`
}

type DeleteLightParam struct {
	Param common.Filter `json:"param" binding:"required"`
}

type UpdateLight struct {
	Id           uint64 `json:"id" binding:"required"`
	Name         string `json:"name" binding:"max=255"`
	Code         string `json:"code" binding:"max=255"`
	Description  string `json:"description" binding:"max=512"`
	CustomTag    string `json:"custom_tag" binding:"max=512"`
	StoragePath  string `json:"storage_path"`
	PreviewImage string `json:"preview_image"`
}
